package com.joolun.cloud.mall.common.feign;

import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.constant.ServiceNameConstants;
import com.joolun.cloud.common.core.util.R;
import com.joolun.cloud.weixin.common.dto.MaQrCodeDTO;
import com.joolun.cloud.weixin.common.dto.WxJsApiDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "feignWxJsSdkService", value = ServiceNameConstants.WX_ADMIN_SERVICE)
public interface FeignWxJsSdkService {

	/**
	 * 获取jssdk config参数
	 * @param wxJsApiDTO
	 * @return
	 */
	@PostMapping("/wxjssdk/config")
	R createJsapiSignature(@RequestBody WxJsApiDTO wxJsApiDTO, @RequestHeader(SecurityConstants.FROM) String from);

}
